//
//  FileTransfer.h
//  HiQ
//
//  Created by scarlettsun on 12-8-16.
//  Copyright (c) 2012年 tencent. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FileSocket.h"
#import "FileTransferDelegate.h"
#import "FileEntityDelegate.h"
#import "FileEntity.h"

#ifndef DEFAULT_LOCATION
#define DEFAULT_LOCATION  @"/Users/stacy/Downloads/"
#endif 

#ifndef BUFFERSIZE_FILE
#define BUFFERSIZE_FILE  8000
#endif

#ifndef REFRESHTIME
#define REFRESHTIME  100
#endif


@interface FileTransfer : NSObject<FileTransferDelegate,FileEntityDelegate>
{
    FileSocket *fileSock;
    NSInteger receiveCounter;//更新计数器
    NSInteger sendCounter;//更新计数器
}

@property FileEntity *transferEntity;    //发送文件列表
- (void) initWithSock:(FileSocket *)sock;
- (FileTransfer *) initWithEntity:(FileEntity *)entity;
-(void) showFilePanel;   //更新文件面板
@end
